//
//  LZChangPwdCell.m
//  DoctorFAQs
//
//  Created by langZai on 2017/2/20.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "LZChangPwdCell.h"

@implementation LZChangPwdCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.textLabel.font = NEWFONT(16);
        self.textLabel.textColor = KHBlackColor;
        
        _contentTextField = [[UITextField alloc] init];
        _contentTextField.secureTextEntry = YES;
        [self.contentView addSubview:_contentTextField];
        [_contentTextField mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.equalTo(self).offset(125*xsIZE);
            make.right.equalTo(self).offset(-10*xsIZE);
        }];
        
        // 自定义tableView的分割线
        UIView *lineView = [[UIView alloc] init];
        lineView.backgroundColor = KHColorFromRGB(0xe0e0e0);
        [self.contentView addSubview:lineView];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.offset(355*xsIZE);
            make.height.offset(0.5*ysIZE);
            make.left.equalTo(self.mas_left).offset(10*xsIZE);
            make.bottom.equalTo(self);
        }];
        
        
    }
    return self;
}

@end
